/* iot-platform/assets/css/global.css */

/* --- 基础重置和全局定义 --- */
* {
    box-sizing: border-box;
}

body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    background-color: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    /* --- 修改开始 --- */
    font-size: 14px; /* 将基础字号从 12px 或默认值调整为 14px */
    /* --- 修改结束 --- */
    color: #333;
}

a {
    text-decoration: none;
    color: #1890ff;
}

/* --- 通用卡片样式 --- */
.card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* --- 通用按钮样式 --- */
.btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
}

.btn-default {
    background-color: #fff;
    border-color: #d9d9d9;
    color: #333;
}

.btn-default:hover {
    color: #1890ff;
    border-color: #1890ff;
}

/* --- 通用状态标签 --- */
.status-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-online {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.status-offline {
    background-color: #f0f0f0;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
}

.status-error {
    background-color: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffa39e;
}

/* --- 通用表单元素 --- */
.form-select, .form-input {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
}
.form-select:focus, .form-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}